// export interface Account {
//   username: string;
//   password: string;
// }

// 首页产品类型
export interface HomeProduct {
  id: number
  name: string
  price: number
  stock: number
  description: string
  image: string
}

// 分类类型
export interface Category {
  id: number
  name: string
  description: string
  products: {
    id: number
    name: string
  }[]
}

// 购物车商品类型
export interface CartItem {
  id: number
  name: string
  price: number
  quantity: number
  description: string
  image: string
}

// 登录类型
export interface Account {
  username: string
  password: string
}